﻿using CRM.Admin.Contracts.Dto.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;
using System;
using System.Linq;

namespace CRM.Admin.Contracts.Contract.Customer
{
    public interface ICustomerService:IDependency
    {
        /// <summary>
        /// 顾客明细集合
        /// </summary>
        IQueryable<Model.Customer.Customer> Customers { get; }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="dtos">信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params CustomerDto[] dtos);

        /// <summary>
        /// 编辑顾客明细
        /// </summary>
        /// <param name="dtos">顾客明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params CustomerDto[] dtos);

        /// <summary>
        /// 删除顾客
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
